# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=qtposition_gpsd
pkgver=0_git20170922
_commit="465a8eafada7f5d788d912ba40b22b3a0065e74b"
pkgrel=0
pkgdesc="Qt Position plugin for gpsd"
url="https://github.com/jmechnich/qtposition_gpsd"
arch="all !armhf" # Limited due to qt5-location-dev
license="MIT"
makedepends="qt5-qtlocation-dev"
source="https://github.com/jmechnich/qtposition_gpsd/archive/$_commit/qtposition_gpsd-$_commit.tar.gz"
builddir="$srcdir/qtposition_gpsd-$_commit"
options="!check" # No tests

build() {
	qmake-qt5
	make
}

package() {
	install -Dm755 libqtposition_gpsd.so \
		"$pkgdir"/usr/lib/qt5/plugins/position/libqtposition_gpsd.so
}

sha512sums="97376405ed5da53812f996d86f39170349610acc9819f1a0b2c49139e8f221adab878a4df1b8c201d8c6db9c1bda06e6c1b6eb7584d5c88f158c5b9609e11992  qtposition_gpsd-465a8eafada7f5d788d912ba40b22b3a0065e74b.tar.gz"
